<%include("/common/list-top.html",{title:"编码规则管理",css:[ctxPath +
"/css/system-manage.css", ctxPath+"/css/zjcss.css"]}){} %>

<div class="container-fluid">
    <div class="page-head-nav">
        <div class="row">
            <div class="col-xs-10">
                <ol class="breadcrumb">
                    <li><a href="${ctxPath}"><i class="icon icon-home"></i>工作台</a></li>
					<li>系统管理</li>
					<li><a href="${ctxPath}/codingRule">编码规则管理</a></li>
				</ol>
			</div>
		<div class="btn-group col-xs-2">
			<a class="btn btn-link" type="button" id="add">新增</a>
			<a class="btn btn-link" type="button" id="create">一键智能启动</a>
		</div>
        </div>
    </div>
<div class="row">
	<div class="col-xs-12" id="mainUI">
		<div class="row listui">
			<div class="col-xs-12 ">
				<#listTable url="${ctxPath}/codingRule"
					fields="bill_type,单据类型,sort,query|rule_desc,规则描述,no-sort,no-query|create_time,创建时间,sort,no-query|update_time,最后修改时间,no-sort,no-query|rule_status,状态,8%,no-sort,no-query" />
			</div>
		</div>
	</div>
</div>



<div class="modal fade " id="addCodingRule" tabindex="-1" role="dialog">
	<div class="modal-dialog" style="width: 600px;">
		<div class="modal-content">
			<div class="modal-header">

				<button type="button" class="close" data-dismiss="modal">
					<span aria-hidden="true">×</span><span class="sr-only">关闭</span>
				</button>
				<h4 class="modal-title">新增编码规则</h4>
			</div>
			<div class="modal-body">

				<form method="post" id="codingRuleForm">
					<div class="form-horizontal">
						<input type="hidden" name="id" id="id">
						<input type="hidden" name="sequenceValue" id="sequenceValue">
						
						<div class="form-group">
							<label class="col-sm-2 col-xs-2 required">单据类型</label>
							<div class="col-xs-6 col-sm-6">
								<select class="form-control" id="billType" name="billType">
									<option value="区域">区域</option>
									<option value="位置">位置</option>
									<option value="容器">容器</option>
									<option value="箱单">箱单</option>
									<option value="项目">项目</option>
									<option value="计划">计划</option>
									<option value="容器模板">容器模板</option>
									<option value="运输方式">运输方式</option>
									<option value="计划模板">计划模板</option>
								</select>
							</div>
						</div>

						<div class="form-group">
							<label class="col-sm-2 col-xs-2 required">规则描述</label>
							<div class="col-xs-6 col-sm-6">
								<input type="text" class="form-control" name="ruleDesc" id="ruleDesc">
							</div>
						</div>

						<div class="form-group">
							<label for="codingPrefix" class="col-sm-2 col-xs-2"><input
								type="checkbox" id="codingPrefixCheckBox" onclick="check1(this)">前缀</label>
							<div class="col-xs-6 col-sm-6">
								<input type="text" class="form-control" name="codingPrefix" id="codingPrefix" disabled="disabled">
							</div>
						</div>

						<div  class="form-group">
							<label for="dateTime" class="col-sm-2 col-xs-2"><input
								type="checkbox" id="dateTimeCheckBox" onclick="check2(this)">日期</label>
							<div class="col-xs-6 col-sm-6">
								<select class="form-control" id="dateTime" name="dateTime"disabled>
									<option selected="selected" disabled="disabled" style='display: none' value=''></option>
									<option value="yyyyMMdd">年月日</option>
									<option value="yyyy-MM-dd">年-月-日</option>
									<option value="yyyy/MM/dd">年/月/日</option>
								</select>

							</div>
						</div>

						<div class="form-group">
							<label for="sequenceCheckBox" class="col-sm-2 col-xs-2 "><input
								type="checkbox" id="sequenceCheckBox" onclick="check3(this)">序列</label>

							<div class="col-sm-8 col-xs-8">
								<div class="row">
									<span class="col-sm-2 col-xs-2 ">序列长度</span> <span class="col-sm-4 col-xs-4 "> 
									<input type="text" class="form-control number" name="sequenceLength" id="sequenceLength" disabled></span>
								</div>
								<div style="height: 10px;"></div>
								<div class="row">
									<span class="col-sm-2 col-xs-2 ">起步值</span> <span class="col-sm-4 col-xs-4 ">
									 <input type="text" class="form-control number" name="sequenceBeginValue" id="sequenceBeginValue" disabled></span>
								</div>
								<div style="height: 10px;"></div>
								<div class="row">
									<span class="col-sm-2 col-xs-2 ">步长</span> 
									<span class="col-sm-4 col-xs-4 "> 
									<input type="text" class="form-control number" name="stepLengthValue" id="stepLengthValue" disabled></span>
								</div>
							</div>
						</div>

						<div class="form-group">
							<label for="codingSuffix" class="col-sm-2 col-xs-2">
							<input type="checkbox" id="codingSuffixCheckBox" onclick="check4(this)">后缀</label>
							<div class="col-xs-6 col-sm-6">
								<input type="text" class="form-control" name="codingSuffix" id="codingSuffix" disabled>
							</div>
						</div>
					</div>
				</form>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				<button type="button" id="update" class="btn btn-primary">保存</button>
				<button type="button" id="save" class="btn btn-primary">保存</button>
			</div>
		</div>
	</div>
</div>
</div>


<%include("/common/list-bottom.html",{js:[ ctxPath +
"/js/systemManage/codingRule-list.js",
ctxPath+"/blockui/jquery.blockui.min.js", ctxPath+"/blockui/app.js"]}){}
%>
